import request from '@/utils/request'

export function addServiceCategory(data) {
  return request({
    url: '/juanbusiness/service-category/add',
    method: 'post',
    data
  })
}

export function findServiceCategory(page,size) {
  return request({
    url: '/juanbusiness/service-category/findPage',
    method: 'get',
    params: {page: page,size: size}
  })
}

export function detailServiceCategory(id) {
  return request({
    url: '/juanbusiness/service-category/get',
    method: 'get',
    params: {id: id}
  })
}

export function editServiceCategory(data) {
  return request({
    url: '/juanbusiness/service-category/edit',
    method: 'put',
    data
  })
}

export function delServiceCategory(id) {
  return request({
    url: '/juanbusiness/service-category/del',
    method: 'delete',
    params: {id: id}
  })
}
